function util:entity_owner/find_son_distance10 with entity @s

execute store result score #batteryPower temp run data get entity @n[tag=son_entity,distance=..10,type=item_display,tag=guardTower.powerItemDisplay] item.components."minecraft:damage"
execute store result entity @n[tag=son_entity,distance=..10,type=item_display,tag=guardTower.powerItemDisplay] item.components."minecraft:damage" int 1 run scoreboard players add #batteryPower temp 1
execute if score #batteryPower temp matches 200.. run function vs:system/game_ctrol/guard_tower/power/empty_input

scoreboard players reset #batteryPower temp
tag @e[tag=son_entity,distance=..10] remove son_entity